﻿using System;

class ReadNumberException
{
    static void Main()
    {
        int minValue = 1;
        int maxValue = 100;

        Console.WriteLine("Enter 10 numbers in tha range [1...100]:");

        for (int i = 0; i < 10; i++)
        {
            minValue = ReadNumber(minValue, maxValue);
        }
    }

    static int ReadNumber(int start, int end)
    {
        int number = int.Parse(Console.ReadLine());

        if ((start > number) || (number > end))
        {
            throw new ArgumentOutOfRangeException();
        }

        return number;
    }
}
